"""
WinCommand.py
Author: Ryan Walters
Date: 10-12-08

$Id: WinCommand.py 339 2008-10-17 03:57:13Z malerba89 $
"""

from Command import Command
 
 
class WinCommand(Command):
 
	#players is a list of players that should be notified when this command
	 #is executed, and gameController is a reference to the started game
	def __init__(self, players):
 		 self.players = players
 
	#goes to the gameController's display of the NewGameInput
 	def execute(self, winner):
 
	 for player in self.players:
 
		player.handleCommandExecuted('w', winner)
 
